QRCode Scanner SDKActivity
Deprecated
Use CameraX + QRCodeScannerSDK decode functions instead
WARNING: This class has been deprecated, please use Camera X for scanning QR and Cronto codes and QRCodeScannerSDK decode functions for decoding. This class will be removed in a future version.
This activity opens the camera to scan QRCode or CrontoSign images.
By default, only QRCode images can be scanned. The scanning format can be changed by setting an extra parameter when calling this activity. Use QRCodeScannerSDKConstants.EXTRA_CODE_TYPE, QRCodeScannerSDKConstants.QR_CODE and/or QRCodeScannerSDKConstants.CRONTO_CODE.
Device vibration is activated by default when an image has been scanned. To deactivate device vibration, add the QRCodeScannerSDKConstants.EXTRA_VIBRATE extra set to false to your intent.
A scanner overlay can be added on scan view to facilitate the centering of the image. By default, this overlay is disabled. This can be changed by setting the QRCodeScannerSDKConstants.EXTRA_SCANNER_OVERLAY extra. By default, color used for the scanner overlay is 0x99000000. It can be changed with QRCodeScannerSDKConstants.EXTRA_SCANNER_OVERLAY_COLOR.
Functions
Closes the activity if an exception has been raised
Called when an image has been scanned